-- PICARETA

minetest.register_tool("ducktools:duck_pick", {
	description = ("Duck Pickaxe"),
	inventory_image = "duck_pick.png",
	wield_scale = {x=1.5,y=1.5,z=2.5},
	tool_capabilities = {
		full_punch_interval = 0.6,
		max_drop_level=3,
		groupcaps={
			cracky = {times={[1]=1.80, [2]=0.80, [3]=0.30}, uses=50, maxlevel=4},
		},
		damage_groups = {fleshy=5},
			
		
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
	
	
	
})


-- PÁ

minetest.register_tool("ducktools:duck_shovel", {
	description = ("Duck Shovel"),
	inventory_image = "duck_shovel.png",
	tool_capabilities = {
		full_punch_interval = 0.8,
		max_drop_level=3,
		groupcaps={
			crumbly = {times={[1]=0.90, [2]=0.30, [3]=0.10}, uses=40, maxlevel=4},
		},
		damage_groups = {fleshy=6},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})


--  MACHADO

minetest.register_tool("ducktools:duck_axe", {
	description = ("Duck Axe"),
	inventory_image = "duck_axe.png",
	wield_scale = {x=1.5,y=1.5,z=1.5},
	tool_capabilities = {
		full_punch_interval = 0.7,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=1.90, [2]=0.70, [3]=0.30}, uses=40, maxlevel=4},
		},
		damage_groups = {fleshy=8},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})


-- ESPADA
minetest.register_tool("ducktools:duck_sword", {
	description = ("Duck Sword"),
	inventory_image = "duck_sword.png",
	wield_scale = {x=1.5,y=1.5,z=1.5},
	tool_capabilities = {
		full_punch_interval = 0.5,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=50, maxlevel=4},
		},
		damage_groups = {fleshy=10},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

-- SHOPICK

minetest.register_tool("ducktools:duck_shopick", {
	description = ("Duck ShoPick"),
	inventory_image = "duck_shopick.png",
	wield_scale = {x=1.5,y=2,z=2.0},
	tool_capabilities = {
		full_punch_interval = 0.6,
		max_drop_level=3,
		-- add (cracky and crumbly
		groupcaps={
		
			cracky = {times={[1]=1.80, [2]=0.80, [3]=0.30}, uses=50, maxlevel=4}, -- pick
			crumbly = {times={[1]=0.90, [2]=0.30, [3]=0.10}, uses=40, maxlevel=4}, -- shovel
		},
		damage_groups = {fleshy=5},
			
		
	},
	
	sound = {breaks = "default_tool_breaks"},
	-- add ( pickaxe and shovel )
	groups = {pickaxe = 1},
		 {shovel = 1}
	
	
	
})


---------------- CRAFT --------------

minetest.register_craft({
	output = "ducktools:duck_pick",
	recipe = {
		{"mobs:chicken_feather", "default:pick_diamond", "mobs:chicken_feather"},
		{"", "default:coral_skeleton", ""},
		{"", "default:coral_skeleton", ""},
	}
})


minetest.register_craft({
	output = "ducktools:duck_shovel",
	recipe = {
		{"", "default:shovel_diamond", ""},
		{"", "mobs:chicken_feather", ""},
		{"", "default:coral_skeleton", ""},
	}
})


minetest.register_craft({
	output = "ducktools:duck_axe",
	recipe = {
		{"mobs:chicken_feather", "default:axe_diamond", ""},
		{"mobs:chicken_feather", "default:coral_skeleton", ""},
		{"", "default:coral_skeleton", ""},
	}
})


minetest.register_craft({
	output = "ducktools:duck_sword",
	recipe = {
		{"", "default:sword_diamond", ""},
		{"mobs:chicken_feather", "default:coral_skeleton", "mobs:chicken_feather"},
		{"", "default:coral_skeleton", ""},
	}
})

minetest.register_craft({
	output = "ducktools:duck_shopick",
	recipe = {
		{"mobs:chicken_feather", "", "ducktools:duck_shovel"},
		{"", "ducktools:duck_pick", ""},
		{"default:coral_skeleton", "", "mobs:chicken_feather"},
	}
})






